﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BomberManServer.Gaming.Time;
using BomberManServer.Gaming.Object.Mapping.Items;
using BomberManServer.Gaming.Socket;

namespace BomberManServer.Gaming.Object.Mapping
{
    public class Trap
    {
        public Scheduler scheduler { private set; get; }
        public ActionSender sender { private set; get; }
        public Block block;
        public Model.States.Slab slab { get; private set; }

        public Trap(Scheduler scheduler, ActionSender sender)
        {
            this.scheduler = scheduler;
            this.sender = sender;
            slab = new Model.States.Slab(this);
        }

        public void explode(Avatar avatar)
        {
            Bomb trap = new Bomb(avatar, block.coordinates);
            trap.boom();
        }
    }
}
